package com.usc;
import com.usc.bean.Product;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AppConfig {

    @Bean
    public Product p1(){
        Product p = new Product();
        p.setId(1);
        p.setName("张三");
        p.setPrice(100);
        return p;
    }
}
